package com.aliyun.heiyu.powermaster.server.rotary.task;


import com.aliyun.heiyu.powermaster.server.rotary.service.ModelService;
import com.aliyun.heiyu.powermaster.server.rotary.service.impl.ModelServiceImpl;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;


/**
 * @Description 算法模型预测任务
 * @Author shun.zhang
 * @Date 2021/3/12 15:52
 **/
public class AlgoForecastTask implements Job {
    private static Logger logger = LoggerFactory.getLogger(AlgoForecastTask.class);
    public static Date time;
    private ModelService modelService = new ModelServiceImpl();
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        time = new Date();
        logger.info("执行制冷策略预测空调温度任务");
        modelService.modelForecast();
    }
}
